﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

///NHDuc - ViewModel tin tuc
///Created date: ko nho
namespace VietThuongLMS.ViewModels
{
    public class AccountViewModel
    {
        public List<TaiKhoan> List { get; set; }
        public int Total { get; set; }

        public AccountViewModel()
        {
            this.List = new List<TaiKhoan>();
            this.Total = 0;

            //Added by K
            this.ListMoRong = new List<TaiKhoanMoRongModel>();
            this.TotalMoRong = 0;
            //End addition
        }

        public AccountViewModel(List<TaiKhoan> list, int total)
        {
            this.List = list;
            this.Total = total;
        }

        //Added by K
        public List<TaiKhoanMoRongModel> ListMoRong { get; set; }
        public int TotalMoRong { get; set; }
        public AccountViewModel(List<TaiKhoanMoRongModel> list, int total)
        {
            this.ListMoRong = list;
            this.TotalMoRong = total;       
        }
        //End addition
    }

    public class TaiKhoanMoRongModel
    {
        public TaiKhoan TK { get; set; }
        public int MaGiaoVien {get;set;}
        public TaiKhoanMoRongModel()
        {
            TK= new TaiKhoan();
            MaGiaoVien=-1;
        }
    }
}
